{% extends 'base.html' %}


{% block tips %}
    <h3>添加作者详情</h3>
{% endblock tips %}


{% block content %}
    <div class="col-md-offset-2 col-md-6">
        <form action="{% url 'book:author_detail_add' %}" method="post">

            {% csrf_token %}
            {% for field in author_detail_form %}
                <div class="form-group">
                    {{ field.label }}
                    {{ field }}
                    <span class="text-danger">{{ field.errors.0 }}</span>
                </div>
            {% endfor %}
            <button type="submit" class="btn btn-success pull-right">提交</button>
        </form>
    </div>
{% endblock content %}

